/*
 * Copyright (C), 2014-2016, org.esaydev
 * FileName: WechatErrorCode.java
 * Author:   jian
 * Date:     2016年3月21日 
 */
package org.easydev.wechat.common.constants;

/**
 * <Description> <br>
 */
public enum WechatErrorCode {

    /**
     * 请求成功
     */
    REQUEST_SUCCESS("0000", "success!"),

    /**
     * 参数异常
     */
    PARAMS_ERROR("0001", "Params invalied!"),

    /**
     * 返回返回结果有问题
     */
    WECHAT_RESULT_ERROR("0002", "The result From Wechat is null!"),

    /**
     * 通用系统异常
     */
    SYSTEM_ERROR("9999", "System error!");

    private String code;

    private String message;

    private WechatErrorCode(String code, String messgae) {
        this.code = code;
        this.message = messgae;
    }

    /**
     * get code
     * 
     * @return Returns the code.<br>
     */
    public String getCode() {
        return code;
    }

    /**
     * get message
     * 
     * @return Returns the message.<br>
     */
    public String getMessage() {
        return message;
    }

}
